<tr>
    <td>
        <%= shopping_record.select :shop_id, Shop.find(:all, {:order => 'name'}).collect{|obj| [obj.name, obj.id]}.insert(0, ['[无]', '']), {}, :style => "width: 85px" %>
        <% shopping_record.fields_for :shop do |shop| %>
        <%= shop.text_field :name, :size => 10, :style=>"display:none" %>
        <% end %>
        <%= link_to_function "输入", "show_text_field('shopping_record_#{number}_shop_id', 'shopping_record_#{number}_shop_name', this);" %>
    </td>
    <td>
        <%= shopping_record.text_field :shopping_cost, :size => 10, :onkeyup => "calc_flow_cost(this)" %>
    </td>
    <td>
        <%= shopping_record.text_field :flow_cost, :size => 10, :onkeyup => "calc_total_cost_by_flow_cost(this)" %>
    </td>
    <td>
        <%= shopping_record.text_field :unit_price, :size => 10, :onkeyup => "calc_people_cost_by_unit_price(this)" %>
    </td>
    <td>
        <%= shopping_record.text_field :number_of_people, :size => 10, :onkeyup => "calc_people_cost_by_number_of_people(this)" %>
    </td>
    <td>
        <%= shopping_record.text_field :people_cost, :size => 10, :onkeyup => "calc_total_cost_by_people_cost(this)" %>
    </td>
	<td>
        <%= shopping_record.text_field :total_cost, :size => 10, :onkeyup => "calc_shopping_total_cost()" %>
    </td>
    <td>
        <%= shopping_record.check_box :is_checkedout, :size => 10 %>
    </td>
</tr>
